package com.wander.patterns.act.observer;

import lombok.Data;

/**
 * @description:
 * @author: zhuyong
 * @create: 2019-09-11 17:12
 **/
@Data
public class ObserverA implements Observer{
    int status;

    @Override
    public void update(Subject subject) {
            //观察者的状态也接收到通知之后 发生改变
            this.status = ((ConcreteSubject)subject).getStatus();
    }
}
